package com.zg.paging3.activity.net.data

import com.squareup.moshi.JsonClass

/***
 * @Author:      zxd
 * @CreateDate:  2021/6/2 13:47
 * @Description:
 */
@JsonClass(generateAdapter = true)
data class BaseResp<T>(
    var `data`: T,
    var errorCode: Int = 0,
    var errorMsg: String = ""
)

@JsonClass(generateAdapter = true)
data class BaseListResp<T>(
    var curPage: Int,
    var offset: Int,
    var over: Boolean,
    var pageCount: Int,
    var size: Int,
    var total: Int,
    var datas: List<T>
)